package edu.cuit.zhuyimeng.uaa.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(name = "LoginVO", description = "登录请求参数")
public class LoginVO {

    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名", example = "admin", requiredMode = Schema.RequiredMode.REQUIRED)
    private String username;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码", example = "123456", requiredMode = Schema.RequiredMode.REQUIRED)
    private String password;

    @Schema(description = "是否记住我", example = "true", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否记住我必选")
    private Boolean isRememberMe;

}
